<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>SemOpt: src/Labelling.cpp File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">SemOpt
   &#160;<span id="projectnumber">0.2alpha5-SCC</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('Labelling_8cpp.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">src/Labelling.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;Labelling.h&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for Labelling.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="Labelling_8cpp__incl.png" border="0" usemap="#src_2Labelling_8cpp" alt=""/></div>
<map name="src_2Labelling_8cpp" id="src_2Labelling_8cpp">
<area shape="rect" id="node3" href="Labelling_8h_source.html" title="Labelling.h" alt="" coords="204,83,287,112"/><area shape="rect" id="node9" href="Argument_8h_source.html" title="Argument.h" alt="" coords="201,160,289,189"/><area shape="rect" id="node20" href="SetArguments_8h_source.html" title="SetArguments.h" alt="" coords="268,315,383,344"/><area shape="rect" id="node14" href="AF_8h_source.html" title="AF.h" alt="" coords="220,237,271,267"/></map>
</div>
</div>
<p><a href="Labelling_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="Labelling_8cpp.html#ac4e0bfe6bf8d4ca2df0ffffe90d87f9e">operator==</a> (const <a class="el" href="classLabelling.html">Labelling</a> &amp;lhs, const <a class="el" href="classLabelling.html">Labelling</a> &amp;rhs)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">compare two <a class="el" href="classLabelling.html" title="Class representing a single labelling assignment.">Labelling</a> according to their list.  <a href="#ac4e0bfe6bf8d4ca2df0ffffe90d87f9e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="Labelling_8cpp.html#a51bee584f2dc4685db614fec131cc1c3">operator!=</a> (const <a class="el" href="classLabelling.html">Labelling</a> &amp;lhs, const <a class="el" href="classLabelling.html">Labelling</a> &amp;rhs)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">computes the opposite of the operator ==  <a href="#a51bee584f2dc4685db614fec131cc1c3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="Labelling_8cpp.html#a1de91469b5411dab3862f37c1dc697a2">operator&lt;&lt;</a> (ostream &amp;stream, const <a class="el" href="classLabelling.html">Labelling</a> &amp;lab)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">prints a list of labels' nodes contained in this instance  <a href="#a1de91469b5411dab3862f37c1dc697a2"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition in file <a class="el" href="Labelling_8cpp_source.html">Labelling.cpp</a>.</p>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="a51bee584f2dc4685db614fec131cc1c3"></a><!-- doxytag: member="Labelling.cpp::operator!=" ref="a51bee584f2dc4685db614fec131cc1c3" args="(const Labelling &amp;lhs, const Labelling &amp;rhs)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classLabelling.html">Labelling</a> &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classLabelling.html">Labelling</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>computes the opposite of the operator == </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>the first <a class="el" href="classLabelling.html" title="Class representing a single labelling assignment.">Labelling</a> to compare </td></tr>
    <tr><td class="paramname">rhs</td><td>the second <a class="el" href="classLabelling.html" title="Class representing a single labelling assignment.">Labelling</a> to compare </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if: <ul>
<li>the size of lhs is different from rhs one; </li>
<li>lhs owns different Arguments from rhs;</li>
</ul>
FALSE otherwise; </dd></dl>

<p>Definition at line <a class="el" href="Labelling_8cpp_source.html#l00301">301</a> of file <a class="el" href="Labelling_8cpp_source.html">Labelling.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1de91469b5411dab3862f37c1dc697a2"></a><!-- doxytag: member="Labelling.cpp::operator&lt;&lt;" ref="a1de91469b5411dab3862f37c1dc697a2" args="(ostream &amp;stream, const Labelling &amp;lab)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">ostream &amp;&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classLabelling.html">Labelling</a> &amp;&#160;</td>
          <td class="paramname"><em>lab</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>prints a list of labels' nodes contained in this instance </p>
<p>This operator allows you to quickly display all the elements stored in a <a class="el" href="classLabelling.html" title="Class representing a single labelling assignment.">Labelling</a> structure, like a normal <a class="el" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a> </p>

<p>Definition at line <a class="el" href="Labelling_8cpp_source.html#l00311">311</a> of file <a class="el" href="Labelling_8cpp_source.html">Labelling.cpp</a>.</p>

<p>References <a class="el" href="Labelling_8cpp_source.html#l00075">Labelling::begin()</a>, and <a class="el" href="Labelling_8cpp_source.html#l00093">Labelling::end()</a>.</p>

</div>
</div>
<a class="anchor" id="ac4e0bfe6bf8d4ca2df0ffffe90d87f9e"></a><!-- doxytag: member="Labelling.cpp::operator==" ref="ac4e0bfe6bf8d4ca2df0ffffe90d87f9e" args="(const Labelling &amp;lhs, const Labelling &amp;rhs)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classLabelling.html">Labelling</a> &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classLabelling.html">Labelling</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>compare two <a class="el" href="classLabelling.html" title="Class representing a single labelling assignment.">Labelling</a> according to their list. </p>
<p>The operator returns TRUE if any Arguments held by lhs is also stored in rhs and viceversa. The order of the elements is irrelevant to the output of the function; so these 2 instances are equal:</p>
<p class="formulaDsp">
<img class="formulaDsp" alt="\[ A = {a,b,c,d,e} \]" src="form_1.png"/>
</p>
 <p class="formulaDsp">
<img class="formulaDsp" alt="\[ B = {b,e,a,d,c} \]" src="form_2.png"/>
</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>the first <a class="el" href="classLabelling.html" title="Class representing a single labelling assignment.">Labelling</a> to compare; </td></tr>
    <tr><td class="paramname">rhs</td><td>the second <a class="el" href="classLabelling.html" title="Class representing a single labelling assignment.">Labelling</a> to compare; </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if: <ul>
<li>lhs has the same Arguments stored in rhs, regardless of the order. </li>
</ul>
</dd></dl>

<p>Definition at line <a class="el" href="Labelling_8cpp_source.html#l00277">277</a> of file <a class="el" href="Labelling_8cpp_source.html">Labelling.cpp</a>.</p>

<p>References <a class="el" href="Labelling_8cpp_source.html#l00075">Labelling::begin()</a>, <a class="el" href="Labelling_8cpp_source.html#l00093">Labelling::end()</a>, and <a class="el" href="Labelling_8cpp_source.html#l00231">Labelling::size()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="Labelling_8cpp.html">Labelling.cpp</a>      </li>

    <li class="footer">Generated on Fri Jan 17 2014 11:47:51 for SemOpt by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
